package com.sharemarking.wa.platform.dto.reportForm;

import java.util.Date;

/**
 * @author dxy
 */
public class DriverListDto {
    private String carNumber;
    private String code;
    private String wasteName;
    private String driverName;
    private String loadingAddress;
    private String unloadingAddress;
    private Integer transportFees;
    private Date transferTime;
    private Integer state;

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getWasteName() {
        return wasteName;
    }

    public void setWasteName(String wasteName) {
        this.wasteName = wasteName;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getLoadingAddress() {
        return loadingAddress;
    }

    public void setLoadingAddress(String loadingAddress) {
        this.loadingAddress = loadingAddress;
    }

    public String getUnloadingAddress() {
        return unloadingAddress;
    }

    public void setUnloadingAddress(String unloadingAddress) {
        this.unloadingAddress = unloadingAddress;
    }

    public Double getTransportFees() {
        if (transportFees!=null){
            return transportFees * 0.01;
        }
        return null;
    }

    public void setTransportFees(Integer transportFees) {
        this.transportFees = transportFees;
    }

    public Long getTransferTime() {
        if (transferTime != null) {
            return transferTime.getTime();
        }
        return null;
    }

    public void setTransferTime(Date transferTime) {
        this.transferTime = transferTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
